package com.catchu.pattern.creational.命令模式.command;

import com.catchu.pattern.creational.命令模式.receive.BaseReceiver;

/**
 * 命令发出者基类
 */
public abstract class BaseCommand {

    protected BaseReceiver baseReceiver;

    public BaseCommand(BaseReceiver baseReceiver) {
        this.baseReceiver = baseReceiver;
    }

    /**
     * 实际命令执行者
     */
    public abstract void execute();
}
